package com.lsa.edmonds.chap8;

public class Silly
{
	public static void main(String[] args)
	{
		fun(10);
	}
	
	public static void fun(int n)
	{
		if (n == 1)
		{
			System.out.print("X");
		}
		else if (n == 2)
		{
			System.out.print("Y");
		}
		else if (n > 0)
		{
			System.out.print("A");
			fun(n - 1);
			System.out.print("B");
			fun(n - 2);
			System.out.print("C");
		}
	}

}
